package bubuntux.util;

public abstract class TimeUtil {

	private static final long secondInMillis = 1000;
	private static final long minuteInMillis = secondInMillis * 60;

	public static String toString(long time) {
		StringBuffer sb = new StringBuffer();
		sb.append(time / minuteInMillis);
		sb.append(" min ");
		time = time % minuteInMillis;
		sb.append(time / secondInMillis);
		sb.append(" sec ");
		time = time % secondInMillis;
		sb.append(time);
		sb.append(" ms");
		return sb.toString();
	}

}
